Repository navigation
feat(history): events.replay pages back with before and limit - #773
Merged
Merged
Conversation
Contributor
Author
Review ledger{"findings":[
{"id":"R1","role":"code","class":"testing 3","outcome":"fixed","fix":"07097f74a8afb234f9411ef91b57a3c29e9860ed","path":"src/history/index.ts"},
{"id":"R2","role":"code","class":"testing 3","outcome":"fixed","fix":"07097f74a8afb234f9411ef91b57a3c29e9860ed","path":"src/history/index.ts"},
{"id":"R3","role":"code","class":"testing 10","outcome":"fixed","fix":"07097f74a8afb234f9411ef91b57a3c29e9860ed","path":"src/history/history.test.ts"},
{"id":"R4","role":"code","class":"testing 3","outcome":"fixed","fix":"07097f74a8afb234f9411ef91b57a3c29e9860ed","path":"src/gateway/dispatcher.ts"},
{"id":"R5","role":"spec","class":"testing 7","outcome":"incorrect","path":"src/daemon/dispatcher.test.ts"}
]}Written by an agent. |
Contributor
Author
Review notesNot blocking, not verified. Each is one reviewer's claim.
Written by an agent. |
V3RON
marked this pull request as ready for review
October 20, 2026 15:20
This was referenced Oct 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #764
GET /v1/eventsgainsbeforeandlimit, so a client can page backwards throughhistory.db, andlimitalone returns the newest events.eventsPageQueryin the contract owns the parsing and bounds;replayPagereturns events, not-kept or unavailable, andeventsPageAnswermaps them to 422HISTORY_NOT_KEPTand 503HISTORY_UNAVAILABLE. The protocol bumps by one.Status
Implement: done (12/12 green) Review: round 2 passed Hardware: n/a Gate: waiting for the stack
Done when
pnpm testpasses the touched tests, andnode .agents/scripts/protocol-bump-check.mjspasses. Checked by the build and audit runs (pnpm test:changed, 6127 tests) and the fix run (121/121), plusprotocol-bump-checkin each.Assumptions
none
Review
Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 4 blocking, 4 fixed, 0 notes. Claims review: 0 blocking, 0 fixed, 2 notes.
Rounds: 2. Tokens: 23.9M.
Runs: 9. Cost USD: 3.9993. Agent seconds: 2715.
Assessment: complete
Rejected:
limitalone duplicate the history test — [incorrect] they cover the dispatchers' routing condition, which the history test cannot reach.Written by an agent.